home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
LDB171.ARJ
/
FMUTUAL.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-12
|
1KB
|
80 lines
/*
fmutual.hpp -- Loose Data Binder v 1.7:
mutually owned and persistence
"form."
(C) Copyright 1992 John W. Small
All rights reserved
PSW / Power SoftWare
P.O. Box 10072
McLean, Virginia 22102 8072 USA
(703) 759-3838
Clone this file to speed the development of
classes derived from a Mutual hierarchy.
replace: with something like:
CLASS Mint
CPTR MinT
BASE Mutual
*/
#ifndef CLASS_HPP
#define CLASS_HPP
#ifndef BASE_HPP
#include "BASE.hpp"
#endif
#define ID_CLASS ???
typedef class CLASS * CPTR;
#define CPTR0 ((CPTR)0)
class CLASS : public BASE {
// BASE must be public for type conversion
// to Mutual for polymorphic handling!
private:
/* CLASS-declared data members */
int initData(
// CLASS-declared data member initializers
);
protected:
CLASS (initVFTs) : BASE(initVFTsEtc) {}
virtual void fput(ostream& os);
static MutuaL fget(istream&, MutuaL InstancE);
public:
CLASS
(
// CLASS-declared data member initializers
// BASE-declared data member initializers
);
CLASS (CLASS&);
static void RegisterClass()
{ Mutual::RegisterClass
(ID_CLASS,CLASS::fget); }
virtual int operator=(Mutual&);
virtual MutuaL clone();
virtual unsigned ID() { return ID_CLASS; }
virtual ~CLASS();
};
#endif /* CLASS_HPP */